//主页面样式
#Home{
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  padding: 40px;

  .home-main{
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    box-shadow: 10px 10px 10px var(--bg-top-shadow), -10px -10px 10px var(--bg-bottom-shadow);
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    // 左侧导航栏
    .main-left{
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 248px;
      min-width: 248px;
      height: 100%;
      border-radius: 20px 0 0 20px;
      border-right: 1px solid var(--right-border);
      // 标题
      .nameBox{
        display: flex;
        align-items: center;
        width: 184px;
        height: 56px;
        margin-top: 48px;
        span {
          color: var(--text-color);
          font-size: 20px;
          font-weight: 500;
          //禁止选中
          user-select: none;
        }
      }
      // 用户头像和昵称
      .userBox {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-shrink: 0;
        margin: 32px 0 24px 0;
        width: 184px;
        height: 48px;
        border-radius: 6px;
        .profile {
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          margin: 0 16px 0 8px;
          width: 35px;
          height: 35px;
          color: var(--text-color);
          border-radius: 50%;
          background-color: var(--btn-color);
          .svg-icon{
            width: 20px;
            height: 20px;
            color: var(--white);
          }
        }
        .username {
          color: var(--text-color);
          font-size: 16px;
          font-weight: 400;
          line-height: 48px;
        }
      }
      .userBox:hover {
        background-color: var(--btn-hover-color);
        cursor: pointer;
      }
      // 路由按钮
      .nav {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        width: 184px;
        height: 32px;
        border-radius: 6px;
        margin-bottom: 16px;
        cursor: pointer;
        border: 1px solid transparent;

        .svg-icon {
          color: var(--text-color);
          width: 20px;
          height: 20px;
          margin-left: 8px;
          margin-right: 24px;
        }
      }
      .nav:hover {
        border: 1px solid var(--btn-color);
      }
      .nav:hover .iconfont {
        color: var(--text-color2);
      }
    }
    // 右侧路由栏
    .main-right{
      width: 100%;
      height: 100%;
    }
  }
}
